-- GENERATED SPELL FOR [Seasoned Defender] --


function spell0_13326(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13326', 0, 1)
end

function spell1_13326(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_13326', 5277, 1)
end

function Sorts_13326(pUnit, Event)
local choix_sorts_13326 = math.random(0, 1)
if choix_sorts_13326 == 0 then
pUnit:RegisterEvent('spell0_13326', 1, 1)
end
if choix_sorts_13326 == 1 then
pUnit:RegisterEvent('spell1_13326', 1, 1)
end
end

function mob13326_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13326', math.random(1500, 3000), 1)
end

function mob13326_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13326_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13326_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13326, 1, 'mob13326_Action')
RegisterUnitEvent(13326, 2, 'mob13326_Leave')
RegisterUnitEvent(13326, 3, 'mob13326_Kill')
RegisterUnitEvent(13326, 4, 'mob13326_Die')
